import { useCallback } from 'react';
import { h0 } from '../utils/index';

export default function useNav(date, dispatch) {
    const disprev = h0(date) <= h0();
    const disnext = h0(date) - h0() > 20 * 86400 * 1000;
    return { disprev, disnext };
}
